<%--
说明：用户信息表 增加/修改页面

@author liuxun 2012-03-06
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>用户信息</title>
<script src="jsp/usraccount/a_org_jx/a_usr_edit.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>

  <form id="opeForm" name="opeForm" method="post" action="">

    <%-- 操作类型 0录入 1修改 --%>
    <input type="hidden" id="operationType" name="operationType" value="${operationType}" /> 
<%--     <input type="hidden" id="usr_id" name="model.usr_id" value="${model.usr_id}" /> 
    <input type="hidden" id="org_id" name="model.org_id" value="${model.org_id}" />
    <input type="hidden" id="is_hide" name="model.is_hide" value="${model.is_hide}" />
    <input type="hidden" id="node_id" name="model.node_id" value="${model.node_id}" />
    <input type="hidden" id="first_login" name="model.first_login" value="${model.first_login}" /> --%>
	<c:if test="${operationType==1}">
		<input type="hidden" id="org_code" name="model.org_code" value="${model.org_code}" />
		<input type="hidden" id="org_id" name="model.org_id" value="${model.org_id}" /> 
<%-- 	 <input type="hidden" id="org_sequence" name="model.org_sequence" value="${model.org_sequence}" />  --%>
    <input type="hidden" id="is_leaf" name="model.is_leaf" value="${model.is_leaf}" /> 
    <input type="hidden" id="is_hide" name="model.is_hide" value="${model.is_hide}" />
    <input type="hidden" id="node_id" name="model.node_id" value="${model.node_id}" />
     <input type="hidden" id="upper_org_code" name="model.upper_org_code" value="${model.upper_org_code}" />
    </c:if>
    
    
    <table style="width: 100%; height: 100%" border="0" cellpadding="0" cellspacing="0" class="editDisplay">
      <tr>
        <td valign="top">
          <%--编辑页面名称标题表格--%>
          <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" class="editCaption">
            <tr>
              <td height="30">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><font class="editCaptionTitle"><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>用户信息</font></td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
          </table> <%--编辑部分表格--%>
          <table border="0" align="center" cellpadding="0" cellspacing="0" class="editTableBorder">
            <tr>
              <td>
                <table border="0" align="center" cellpadding="0" cellspacing="0" class="editMainTable">
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">身份证号：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<c:if test="${operationType==1}">
							${model.org_code} &nbsp;                    	
                    	</c:if>
                    	<c:if test="${operationType==0}">
                    		<input type="text" id="org_code" name="model.org_code" required="true" validType="maxLength[50]" class="easyui-validatebox  editMainText" value="${model.org_code}" /> &nbsp;<span><font color="red">*</font> </span>
                    	</c:if>                      
                    
                    
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">姓名：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="org_name" name="model.org_name" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.org_name}" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">手机号码：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="mobile" name="model.mobile" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.mobile}" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">家庭地址：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="address" name="model.address" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.address}" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">所属银行：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="banktype" name="model.banktype" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.banktype}" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>
 
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">银行卡号：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="banknumber" name="model.banknumber" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.banknumber}" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">介绍人：&nbsp;</td>
                    
                    <td class="editMainTD" align="left" nowrap="nowrap">
                                       
                      <c:if test="${operationType==1}">
							${model.upper_org_code} &nbsp;                    	
                    	</c:if>
                    	<c:if test="${operationType==0}">
                    		 <input type="text" id="upper_org_code"  name ="model.upper_org_code" required="true" validType="maxLength[50]" class="easyui-validatebox  editMainText" value="${model.upper_org_code}" /> &nbsp;<span><font color="red">*</font> </span>
                 	</c:if>  
                    
                    
                      </td>
                  </tr>

                 <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">备注：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="org_desc" name="model.org_desc" validType="" class="easyui-validatebox  editMainText" value="${model.org_desc}" />
                    </td>
                  </tr>  


                  
                  <%-- 
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">是否长期有效：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
						<select id="is_long_term" name="model.is_long_term" style="width: 150px">
                        	<option value="1" <c:if test="${model.is_long_term==1}">selected</c:if>>是</option>
                        	<option value="0" <c:if test="${model.is_long_term==0}">selected</c:if>>否</option>
                    	</select> &nbsp;
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">生效时间：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <input type="text" id="effect_time" name="model.effect_time" value="${model.effect_time}" readonly="readonly" class="easyui-validatebox  editMainText" maxlength=19 /> 
                    <img src="<c:url value="/images/datetimepicker_css/cal.gif" />" onclick="javascript:NewCssCal ('effect_time','yyyyMMdd','dropdown',true,'24',true,'future')" style="cursor:pointer"/>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">失效时间：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <input type="text" id="expire_time" name="model.expire_time" validType="" class="easyui-validatebox  editMainText" value="${model.expire_time}" maxlength=19 /> 
                    <img src="<c:url value="/images/datetimepicker_css/cal.gif" />" onclick="javascript:NewCssCal ('expire_time','yyyyMMdd','dropdown',true,'24',true,'future')" style="cursor:pointer"/>
                    </td>
                  </tr>               
				  --%>
<%--                   <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">备注：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="usr_desc" name="model.usr_desc" validType="" class="easyui-validatebox  editMainText" value="${model.usr_desc}" />
                    </td>
                  </tr> --%>

                  <tr>
                    <td class="editMainConstTD" colspan="2">&nbsp;&nbsp;说明：带<span><font color="red">*</font> </span>的项目是必须填写项</td>
                  </tr>
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="editMainBottomTD">&nbsp;
                      <div style="text-align: center; padding: 5px;">
                        <a href="javascript:void(0)" id="okBtn" icon="icon-save" class="easyui-linkbutton">保存</a> <a href="javascript:void(0)" id="cancelBtn" icon="icon-cancel" class="easyui-linkbutton">取消</a>
                      </div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>

  </form>

</body>
</html>